package com.chinawayltd.ews.sample.job;

import com.chinawayltd.ews.sample.taskCenter.TaskJob;
import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @program: greeProject.timingTaskCenter
 * @description:
 * @author: xiazj
 * @create: 2018-06-13 14:53
 **/
@Component
public class TestJob implements TaskJob {

    private static Logger logger = LoggerFactory.getLogger(TestJob.class);

    @Override
    public void doJob(JobExecutionContext context) {
        logger.info("=================开始执行测试定时器==================");
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        logger.info("=================执行完成测试定时器==================");

    }

}
